<form action="<?php echo base_url("index.php/news/updatetomodel")?>" method="post" enctype="multipart/form-data" name="loginform" id="loginform">
<input id="id" name="id" type="hidden" value="<?php echo $id;?>"/>
      <fieldset>
      <legend>Edit Infomation</legend>
      <table class="nostyle">
        <tr>
          <td style="width:120px;">New Name:</td>
          <td><input name="new_name" type="text" class="input-text" id="new_name" value="<?php echo $new_name;?>" size="40" /></td>
        </tr>
		<tr>
          <td style="width:120px;">Pic:</td>
          <td><input type="file" name="file" /><?php if($pic){?> <img border="0" width="80" src="/<?php echo $pic;?>" /><?php } ?></td>
		</tr>
		<tr>
          <td style="width:120px;">Recommend:</td>
          <td><input name="recommend" type="checkbox" id="recommend" value="1" <?php if($recommend){?> checked="checked" /><?php } ?></td>
        </tr>
		<tr>
          <td style="width:120px;">New Content</td>
          <td><textarea  id="new_content" name="new_content" cols="75" rows="7" class="input-text"><?php echo $new_content;?></textarea></td>
        </tr> 
        <tr>
          <td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Commit" /></td>
        </tr>
      </table>
      </fieldset>

</form>
